<?php
// +----------------------------------------------------------------------
// | Yzncms [ 御宅男工作室 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2018 http://yzncms.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 御宅男 <530765310@qq.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 初始化配置
// +----------------------------------------------------------------------
namespace app\admin\behavior;

class Adminlog
{
    public function run($params)
    {
        //只记录POST请求的日志
        if (request()->isPost() && config('auto_record_admin_log')) {
            \app\admin\model\Adminlog::record();
        }
    }
}
